package com.cos.hospital.ui.patient.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.cos.hospital.R;
import com.cos.hospital.model.bean.PatientInfoBean;

import java.util.List;

/**
 * 剩余治疗适配器
 */
public class SurplusCureAdapter extends BaseQuickAdapter<PatientInfoBean.CureBean, BaseViewHolder> {

    public SurplusCureAdapter(@Nullable List<PatientInfoBean.CureBean> data) {
        super(R.layout.item_surplus_cure, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, PatientInfoBean.CureBean item) {
        helper.setText(R.id.tv_name, item.getFldItemName());
        helper.setText(R.id.tv_count, item.getFldNum() + "次");
    }
}